﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DARE
{
    public class CStaticImageData : CWidgetData
    {
        public CHudTextureData image;

        public override void FillDataStructure(CWidget wid)
        {
            CStaticImage w = wid as CStaticImage;
            base.FillDataStructure(wid);
            image = new CHudTextureData();
            image.FillDataStructure(w.Image);
        }

        public override void FillFromDataStructure(ref CWidget wid, CHUDSystem hud)
        {
            base.FillFromDataStructure(ref wid, hud);
            CHudTexture tex = new CHudTexture();
            image.FillFromDataStructure(tex);
            (wid as CStaticImage).Image = tex;
        }
    }
}
